package com.data.modules.smzh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.data.modules.smzh.entity.Buildinguser;
import com.data.modules.smzh.entity.SmUser;
import com.data.modules.smzh.mapper.BuildinguserMapper;
import com.data.modules.smzh.service.IBuildinguserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: buildinguser
 * @Author: data-boot
 * @Date:   2022-11-29
 * @Version: V1.0
 */
@Service
public class BuildinguserServiceImpl extends ServiceImpl<BuildinguserMapper, Buildinguser> implements IBuildinguserService {

    @Autowired
    private BuildinguserMapper mapper;
    @Override
    public void deleteByAppIdAndSerialNo(String uniqueNo, int length) {

        mapper.deleteByAppIdAndSerialNo(uniqueNo,length);
    }

    @Override
    public SmUser queryUserInfoByBuildNo(String buindNo) {

        return mapper.searchUserInfoByBuildNo(buindNo);
    }
}
